//
//  LJCircularProgressView.m
//  百思不得姐
//
//  Created by 刘鹿杰 on 16/9/2.
//  Copyright © 2016年 刘鹿杰. All rights reserved.
//

#import "LJCircularProgressView.h"

@implementation LJCircularProgressView

-(void)awakeFromNib{
    
    self.roundedCorners = 2;
    self.progressLabel.textColor = [UIColor whiteColor];
}


-(void)setProgress:(CGFloat)progress animated:(BOOL)animated{
    
    [super setProgress:progress animated: animated];
    
    NSString *text = [NSString stringWithFormat:@"%.0f%%", progress * 100];
    self.progressLabel.text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}


@end
